using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools._Administration
{
    /// <summary>
    /// <para>Disable Network Topology</para>
    /// <para>Disables the network topology for an existing utility network.</para>
    /// <para>禁用现有公共设施网络的网络拓扑。</para>
    /// </summary>    
    [DisplayName("Disable Network Topology")]
    public class DisableNetworkTopology : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public DisableNetworkTopology()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Utility Network</para>
        /// <para>The utility network where the network topology will be disabled.</para>
        /// <para>将在其中禁用网络拓扑的公共设施网络。</para>
        /// </param>
        public DisableNetworkTopology(object _in_utility_network)
        {
            this._in_utility_network = _in_utility_network;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Disable Network Topology";

        public override string CallName => "un.DisableNetworkTopology";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_utility_network, _out_utility_network];

        /// <summary>
        /// <para>Input Utility Network</para>
        /// <para>The utility network where the network topology will be disabled.</para>
        /// <para>将在其中禁用网络拓扑的公共设施网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Updated Utility Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        public DisableNetworkTopology SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}